@extends('admin::layouts.master')
@section('content')
    <div class="modal-header">
        <h3 id="ModalLabel">{{ $title }}</h3>
    </div>
    <div class="modal-body">
        <div class="table-responsive">
            @if (Session::has('flash_error'))
            <div id="flash_error">{{ Session::get('flash_error') }}</div>
            @endif
            {{ $users->links() }}
          <table class="table table-bordered">
          <tr>
              <th>Id</th>
              <th>First Name</th>
              <th>Last Name</th>
              <th>Email</th>
              <th>Created</th>
              <th>Updated</th>
              <th></th>
          </tr>
            @foreach($users as $key => $user)
                <tr>
                    <td>{{ $key + 1; }}</td>
                    <td>{{ $user->first_name}}</td>
                    <td>{{ $user->last_name }}</td>
                    <td>{{ $user->email }}</td>
                    <td>{{ $user->created_at }}</td>
                    <td>{{ $user->updated_at }}</td>
                    <td>
                        {{ html_entity_decode(HTML::linkRoute('edit', HTML::image(URL::to('/public/images/edit.png'), '', array('width' => '16')), array('id' => $user->id))) }}
                        {{ html_entity_decode(HTML::linkRoute('delete', HTML::image(URL::to('/public/images/delete.gif'), '', array('width' => '16')), array('id' => $user->id))) }}
                        {{ html_entity_decode(HTML::linkRoute('view', HTML::image(URL::to('/public/images/view.gif'), '', array('width' => '16')), array('id' => $user->id))) }}
                    </td>
                </tr>
            @endforeach
          </table>
          {{ $users->links() }}
        </div>
    </div>
    <div class="modal-footer"></div>
@stop